<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Exception;
use Illuminate\Support\Facades\Log;


class MLog extends Model
{
   protected $table = 'logs';
   //=============表关系==============

    //============表逻辑=============
    public static function info($key,$value){
        $logs = new MLog();
        $logs->key = $key;
        $logs->value= json_encode($value);
        return $logs->save();
    }

}
